<%@ page import="java.util.Objects" %>
<%@ page import="com.fhd.constant.Constants" %><%--
  Created by IntelliJ IDEA.
  User: 44252
  Date: 2025/3/30
  Time: 12:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h1>商户信息更改 （可以更改任意项信息）</h1>
<%--回到商户信息页--%>
<a href="<%=request.getContextPath()%>/jsp/merchantInformation.jsp">返回</a>
<br><br>
<%
    // 商户修改信息
    String object1 = (String)request.getSession().getAttribute(Constants.UPDATE_MERCHANT_MESSAGE);
    if (!Objects.isNull(object1)) {
        out.print("<h2 style=\"color: red\">" + object1 + "</h2>");
        request.getSession().removeAttribute(Constants.UPDATE_MERCHANT_MESSAGE);
    }
%>
<div>
    <form action="<%=request.getContextPath()%>/merchant.do" method="post">
        <input type="hidden" name="method" value="updateMerchantInformation">
        <div>
            <label for="userCode">账号：</label>
            <input type="text" name="userCode" id="userCode" maxlength="20">
        </div>
        <br>
        <div>
            <label for="userPassword">密码：</label>
            <input type="password" name="userPassword" id="userPassword" maxlength="20">
        </div>
        <br>
        <div>
            <label for="userName">昵称：</label>
            <input type="text" name="userName" id="userName" maxlength="20">
        </div>
        <br>
        <div>
            <label for="shopName">店铺名：</label>
            <input type="text" name="shopName" id="shopName" maxlength="20">
        </div>
        <br>
        <div>
            <label for="address">地址：</label>
            <input type="text" name="address" id="address" maxlength="50">
        </div>
        <br>
        <div>
            <label for="phone">联系电话：</label>
            <input type="text" name="phone" id="phone" maxlength="20" pattern="^1[3-9]\d{9}$">
        </div>
        <br>
        <div>
            <label for="keyWord">关键词：</label>
            <input type="text" name="keyWord" id="keyWord" maxlength="20">
        </div>
        <br>
        <div>
            <label for="workTimeBegin">工作开始时间：</label>
            <input type="time" name="workTimeBegin" id="workTimeBegin">
        </div>
        <br>
        <div>
            <label for="workTimeEnd">工作结束时间：</label>
            <input type="time" name="workTimeEnd" id="workTimeEnd">
        </div>
        <br>
        <div>
            <label><input type="radio" name="openSituation" value="0" >关店</label>
            <label><input type="radio" name="openSituation" value="1" checked>营业</label>
        </div>
        <br>
        <div>
            <input type="submit">
        </div>
    </form>
</div>
</body>
</html>
